package com.kaiyiweitong.tongxing.activity.login;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.kaiyiweitong.tongxing.R;
import com.kaiyiweitong.tongxing.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/12/16 0016.
 */

public class StoreMemberRegisterActivity extends BaseActivity {

    @Bind(R.id.phone_num)
    EditText mPhoneNum;
    @Bind(R.id.get_code_iv)
    ImageView mGetCodeIv;
    @Bind(R.id.check_code)
    EditText mCheckCode;
    @Bind(R.id.time)
    TextView mTime;
    @Bind(R.id.psw)
    EditText mPsw;
    @Bind(R.id.agree_iv)
    ImageView mAgreeIv;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_store_member_register);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.get_code_iv, R.id.agree_iv, R.id.store_member_agreement, R.id.register_tv, R.id.normal_member_register})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.get_code_iv:
                break;
            case R.id.agree_iv:
                break;
            case R.id.store_member_agreement:
                break;
            case R.id.register_tv:
                checkRegister();
                break;
            case R.id.normal_member_register:
                startActivity(new Intent(this, RegisterActivity.class));
                break;
        }
    }

    private void checkRegister() {
        Intent intent = new Intent(this, RegisterSuccessActivity.class);

        startActivity(intent);
    }
}
